home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
_AlertStyle.as
< prev
next >
Wrap
Text File
|
2009-12-16
|
1KB
|
45 lines
package
{
import mx.core.IFlexModuleFactory;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _AlertStyle
{
public function _AlertStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Alert");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Alert",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.paddingTop = 2;
this.borderColor = 8821927;
this.paddingLeft = 10;
this.color = 16777215;
this.roundedBottomCorners = true;
this.paddingRight = 10;
this.backgroundAlpha = 0.9;
this.paddingBottom = 2;
this.borderAlpha = 0.9;
this.buttonStyleName = "alertButtonStyle";
this.backgroundColor = 8821927;
};
}
}
}
}